how to get all rows from a table except some rows in laravel

93

The 'whereNotIn' method of the DB Facade only accepts an array as second argument
$user = DB::table('users')->whereNotIn('id', [1])->get();

Comments

Submit
0 Comments